#!/usr/bin/env python3

num = input('please input a number (1-100):')

try:
    num = float(num)
    if num > 100 or num < 1:
        print('number not in [1,100]')
        exit()
    print('%g' % num)
except ValueError:
    print('not a number')
